import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Demo3 {
    public static void main(String[] args) {
        try(InputStream inputStream = new FileInputStream("Hello World.txt")) {
            byte[] by = new byte[1024];
            int len = inputStream.read(by);
            for (int i = 0; i < len; i++) {
                System.out.printf(by[i] + " ");
            }
        }catch(IOException e) {
            e.printStackTrace();
        }
    }
}
